<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- <link rel="stylesheet" href="./styles.css" /> -->
    <title>响应式签名布局</title>
    <style>
      /* 全局样式 */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      .container {
        display: flex;
      }

      .signature-area {
        flex: 1;
        background-color: #e0e0e0;
      }

      .button-panel {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        background-color: #8bc34a;
        padding: 10px;
      }

      .button-panel button {
        padding: 10px;
        margin-bottom: 10px;
        border: none;
        border-radius: 5px;
      }

      /* 大屏样式（大于1200px） */
      @media screen and (min-width: 1200px) {
        .button-panel {
          width: 200px;
        }
      }

      /* 中屏样式（768px到1200px之间） */
      @media screen and (min-width: 768px) and (max-width: 1199px) {
        .button-panel {
          width: 150px;
        }
      }

      /* 小屏样式（小于768px） */
      @media screen and (max-width: 767px) {
        .container {
          flex-direction: column;
        }
        .button-panel {
          width: 100%;
          flex-direction: row;
          justify-content: space-around;
          padding: 10px 0;
        }
        .button-panel button {
          margin-bottom: 0;
        }
      }
    </style>
  </head>

  <body>
    <div class="container">
      <div class="signature-area"></div>
      <div class="button-panel">
        <button>签名</button>
        <button>重签</button>
        <button>保存</button>
      </div>
    </div>
  </body>
</html>
